import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/home/index.vue'
import TarbBar from '@/components/TarbBar.vue'

const routes = [{
        path: '/home',
        name: 'home',
        component: Home,
        footer: TarbBar
    },
    {
        path: '/search',
        name: 'search',
        component: () =>
            import ('../views/search/search.vue')
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router